package co.com.ticci.autolavado.vo;

import java.io.Serializable;
import javax.persistence.*;
import java.util.List;


/**
 * The persistent class for the ticci_conc_x_serv database table.
 * 
 */
@Entity
@Table(name="ticci_conc_x_serv")
@NamedQuery(name="TicciConcXServ.findAll", query="SELECT t FROM TicciConcXServ t")
public class TicciConcXServ implements Serializable {
	private static final long serialVersionUID = 1L;

	@EmbeddedId
	private TicciConcXServPK id;

	//bi-directional many-to-one association to TicciConcepto
	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumns({
		@JoinColumn(name="AUTO_CONS", referencedColumnName="AUTO_CONS", insertable=false, updatable=false),
		@JoinColumn(name="CONC_CODIGO", referencedColumnName="CONC_CODIGO", insertable=false, updatable=false),
		@JoinColumn(name="EMPR_CONS", referencedColumnName="EMPR_CONS", insertable=false, updatable=false)
		})
	private TicciConcepto ticciConcepto;

	//bi-directional many-to-one association to TicciServicio
	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumns({
		@JoinColumn(name="AUTO_CONS", referencedColumnName="AUTO_CONS", insertable=false, updatable=false),
		@JoinColumn(name="EMPR_CONS", referencedColumnName="EMPR_CONS", insertable=false, updatable=false),
		@JoinColumn(name="SERV_CONS", referencedColumnName="SERV_CONS", insertable=false, updatable=false)
		})
	private TicciServicio ticciServicio;

	//bi-directional many-to-one association to TicciEmplXServConc
	@OneToMany(mappedBy="ticciConcXServ")
	private List<TicciEmplXServConc> ticciEmplXServConcs;

	public TicciConcXServ() {
	}

	public TicciConcXServPK getId() {
		return this.id;
	}

	public void setId(TicciConcXServPK id) {
		this.id = id;
	}

	public TicciConcepto getTicciConcepto() {
		return this.ticciConcepto;
	}

	public void setTicciConcepto(TicciConcepto ticciConcepto) {
		this.ticciConcepto = ticciConcepto;
	}

	public TicciServicio getTicciServicio() {
		return this.ticciServicio;
	}

	public void setTicciServicio(TicciServicio ticciServicio) {
		this.ticciServicio = ticciServicio;
	}

	public List<TicciEmplXServConc> getTicciEmplXServConcs() {
		return this.ticciEmplXServConcs;
	}

	public void setTicciEmplXServConcs(List<TicciEmplXServConc> ticciEmplXServConcs) {
		this.ticciEmplXServConcs = ticciEmplXServConcs;
	}
}